package com.edu.mapper;

import com.edu.bean.Book;

import java.util.List;

/**
 * @Author:zyn
 * @Date:2025/9/26--15:23:40
 */
public interface BookMapper {
    /*通过id查找书本*/
    Book selectBookById(int bookId);
    /*添加书本*/
    int insertBook(Book book);
    /*删除书本*/
    int deleteBookById(int bookId);
    /*修改书本*/
    int updateBookById(Book book);
    /*查询所有书本*/
    List<Book> selectAll();
}
